package com.pphh.demo;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Please add description here.
 *
 * @author huangyinhuang
 * @date 11/12/2018
 */
@RestController
@RequestMapping("/")
public class TestController {

    @Reference(version = "1.0.0")
    private DemoService demoService;

    @GetMapping
    public String hello(){
        return demoService.sayHello("michael");
    }
}
